package com.chinasoft.controller;

import com.chinasoft.common.Result;
import com.chinasoft.service.UserService;
import com.chinasoft.vo.LoginVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Autowired
    private UserService userService;


    @RequestMapping("/login")
    public Result login(@RequestBody  LoginVO loginVO){
        return  userService.login(loginVO);
    }
}
